<?php
Router::connect('/', array('plugin' => 'users', 'controller' => 'users', 'action' => 'dashboard'));
Router::connect('/users', array('plugin' => 'users', 'controller' => 'users'));

Router::connect('/users/index/*', array('plugin' => 'users', 'controller' => 'users'));
Router::connect('/users/:action/*', array('plugin' => 'users', 'controller' => 'users'));
Router::connect('/users/users/:action/*', array('plugin' => 'users', 'controller' => 'users'));
Router::connect('/login/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'login'));
Router::connect('/logout/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'logout'));
Router::connect('/register/*', array('plugin' => 'users', 'controller' => 'users', 'action' => 'add'));

/*
Router::connect('/user/:slug', 
        array('plugin' => 'users', 'controller' => 'users', 'action' => 'view'),
        array('pass' => array('slug'))
        );
 * 
 */
Router::connect('/:slug', 
        array('plugin' => 'users', 'controller' => 'users', 'action' => 'view'),
        array('pass' => array('slug'))
        );
?>
